cssshadowvalue: don't apply the y_scale offset twice to the shadow
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 7 Dec 2017 22:00:01 +0000 (17:00 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 10 Dec 2017 01:13:20 +0000 (20:13 -0500)
As per commit 942e904 this changed causing a regression that
seems to be visible only when scale > 2.

https://bugzilla.gnome.org/show_bug.cgi?id=791363

gtk/gtkcssshadowvalue.c

index 6cdba7c78caef5060d3ea6418923aeee172eb9f1..4cc2cc3d47abdf39250c644d02746ea7fafdbbbc 100644 (file)
@@ -363,7 +363,7 @@ gtk_css_shadow_value_start_drawing (const GtkCssValue *shadow,
   cairo_surface_set_device_scale (surface, x_scale, y_scale);
   cairo_surface_set_device_offset (surface,
                                     x_scale * ((blur_x ? clip_radius: 0) - clip_rect.x),
-                                    y_scale * ((blur_y ? clip_radius * y_scale : 0) - clip_rect.y));
+                                    y_scale * ((blur_y ? clip_radius: 0) - clip_rect.y));
 
   blur_cr = cairo_create (surface);
   cairo_set_user_data (blur_cr, &original_cr_key, cairo_reference (cr), (cairo_destroy_func_t) cairo_destroy);